package com.example.democrud.user.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.democrud.group.Insert;
import com.example.democrud.group.Update;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @ClassName LoginDTO
 * @Author Administrator
 * @Date 2020/4/26   16:21
 */
@Data
@ApiModel(value="登录请求对象", description="")
public class UserDTO {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String name;

    @Length(min = 6,max = 255,message = "密码不能小于6位，大于255位" )
    @NotBlank(message = "password 不能为空")
    @ApiModelProperty(value = "用户密码")
    private String password;
}
